package com.udi.project.business.activate.thread;


import com.alibaba.fastjson.JSONObject;
import com.udi.project.business.activate.detect.DetectTime;
import com.udi.project.business.utils.httpApi.OkHttp1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.text.ParseException;

/**
 * @author Admin
 * 时间校验器，每7分钟校验一次时间
 * 待完善
 *
 *
 */
@Controller
public class TimeCheck {


    /** 时间校验工具类*/
    @Autowired
    private DetectTime detectTime;
    @Autowired
    private OkHttp1 okHttp1;


    public JSONObject check(){
        try {
            detectTime.detec();
        }catch (ParseException e){
            e.printStackTrace();
        }
        return null;
    }


}
